<template>
  <Person v-if="isShow"/>
</template>

<script lang="ts" setup name="App">
import Person from './components/Person.vue'
import { ref,onMounted } from 'vue'
  let isShow = ref(true)
  // 挂载完毕
onMounted(() => {
    console.log('父---组件挂载完毕')//父亲会后挂载
})
</script>